package com.longg.service;

import java.util.List;
import java.util.Map;

public interface IMeetingService {
    /**
     * 根据当前页数查找当前页相应的会议，如果有模糊查询则加上name
     * @param currentPage
     * @param name
     * @return
     */
    List<Map<String, Object>> findMeetingsByPage(int currentPage, String name,String deptName);

    /**
     * 查询所有会议数量
     * @param name
     * @return
     */
    long getCount(String name,String deptName);

    /**
     * 发布文章
     * @param title
     * @param deptName
     * @param startTime
     * @param content
     * @param uid
     * @return
     */
    int addMeeting(String title, String deptName, String startTime, String content, int uid);

    void joinMeeting(int cid, String deptName);

    Map<String, Object> meetDetail(int cid);
}
